package com.toe.pojo.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserPasswordDTOUser对象")
public class UserPasswordDTO {
    @ApiModelProperty(value = "密码（密文）",required = true,position = 2)
    @Pattern(regexp = "^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$",message = "密码必须由6-20位数字,英文,字符中的两种以上组成!")
    private String password;
}
